package br.com.ftt.database;



import java.io.Serializable;
import java.util.List;

import br.com.ftt.exception.ConectionException;

public interface IDaoGenerico<T> {

    public Class<T> getObjectClass();

    public T save(T objeto) throws ConectionException;

    public void delete(T objeto) throws ConectionException;

    public List<T> list() throws ConectionException;

    public T getById(Serializable id) throws ConectionException;

    public List<T> consultaHQL(String consulta) throws ConectionException;

}

